<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<a href="<%=request.getContextPath()%>/car/input">add</a>

<table class="dtable">
	<thead>
		<td>id</td>
		<td>number</td>
		<td>frameid</td>
		<td>engineid</td>
		<td>numberDate</td>
		<td>insuranceDate</td>
		<td>isCarTax</td>
		<td>checkDate</td>
		<td>displacement</td>
		<td>mileage</td>
		<td>color</td>
		<td>configure</td>
		<td>brand</td>
		<td>series</td>
		<td>type</td>
		<td>note</td>
		<td>salerName</td>
		<td>salerTel</td>
		<td>salerCardid</td>
		<td>salerAddr</td>
		<td>buyerName</td>
		<td>buyerTel</td>
		<td>buyerCardid</td>
		<td>buyerAddr</td>
		<td>inputDate</td>
		<td>saleDate</td>
		<td>transferDate</td>
		<td>interId</td>
		<td>repairId</td>
		<td>buySaleNote</td>
		<td>cost</td>
		<td>price</td>
		<td>interCost</td>
		<td>accessoriesCost</td>
		<td>repairCost</td>
		<td>transferCost</td>
		<td>维护</td>
	</thead>
	<tbody>
		<c:forEach items="${datas}" var="d">
			<tr>
				<td>${d.id}</td>
				<td>${d.number}</td>
				<td>${d.frameid}</td>
				<td>${d.engineid}</td>
				<td>${d.numberDate}</td>
				<td>${d.insuranceDate}</td>
				<td>${d.isCarTax}</td>
				<td>${d.checkDate}</td>
				<td>${d.displacement}</td>
				<td>${d.mileage}</td>
				<td>${d.color}</td>
				<td>${d.configure}</td>
				<td>${d.brand}</td>
				<td>${d.series}</td>
				<td>${d.type}</td>
				<td>${d.note}</td>
				<td>${d.salerName}</td>
				<td>${d.salerTel}</td>
				<td>${d.salerCardid}</td>
				<td>${d.salerAddr}</td>
				<td>${d.buyerName}</td>
				<td>${d.buyerTel}</td>
				<td>${d.buyerCardid}</td>
				<td>${d.buyerAddr}</td>
				<td>${d.inputDate}</td>
				<td>${d.saleDate}</td>
				<td>${d.transferDate}</td>
				<td>${d.interId}</td>
				<td>${d.repairId}</td>
				<td>${d.buySaleNote}</td>
				<td>${d.cost}</td>
				<td>${d.price}</td>
				<td>${d.interCost}</td>
				<td>${d.accessoriesCost}</td>
				<td>${d.repairCost}</td>
				<td>${d.transferCost}</td>
				<td>
					<a href="<%=request.getContextPath()%>/car/input?id=${d.id }">修改</a>
					<a href="<%=request.getContextPath()%>/car/delete?id=${d.id }" onclick="return confirm('确认删除?')">删除</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>


</body>
</html>